﻿using System.Collections.Generic;
using BO;
using Model;

namespace Controller
{
    /// <summary>
    /// Summary description for CategoryController
    /// </summary>
    public class CategoryController
    {
        private CategoryBO _categoryBo;

        public CategoryController()
        {
            _categoryBo = new CategoryBO();
        }

        public List<Category> GetListCategory()
        {
            return _categoryBo.GetListCategory();
        }

        public int AddCategory(Category category)
        {
            return _categoryBo.AddCategory(category);
        }

        public int EditCategory(Category category)
        {
            return _categoryBo.EditCategory(category);
        }

        public int DeleteCategory(Category category)
        {
            return _categoryBo.DeleteCategory(category);
        }

        public List<Category> GetInfoOfCategory(string idCategory)
        {
            return _categoryBo.GetInfoOfCategory(idCategory);
        }
    }
}